package cn.crex1.xiaomi.dao.impl;


import cn.crex1.xiaomi.core.orm.template.QueryTemplate;
import cn.crex1.xiaomi.core.orm.template.util.QueryUtils;
import cn.crex1.xiaomi.dao.OrderDao;
import cn.crex1.xiaomi.pojo.Order;

public class OrderDaoImpl implements OrderDao{

	@Override
	public int selectOsOrderQueryOrderPriceAndDeliveryTime(Order order) {
		QueryTemplate queryTemplate = QueryUtils.openTemplate();
		OrderDao orderDao = queryTemplate.getmapper(OrderDao.class, new Object[] {order.getOrder_number(),order.getOrder_status(),order.getOrder_amount(),order.getCreate_time()});
		return orderDao.selectOsOrderQueryOrderPriceAndDeliveryTime(order);
	}

	@Override
	public int selectOsorderByOsNumber(Order order) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertOsorderByOrderNumber(Order order) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteOsorderByOrderNumber(Order order) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateOsorderByPaytypeAndShipmenttimeAndShipmenttypeAndInvoicetype(Order order) {
		// TODO Auto-generated method stub
		return 0;
	}
	
	
}